﻿using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Text pig = new Text();
            int num = 1;

            pig.Fish(ref num);
            Console.WriteLine(num);

            Text pig2 = new Text();
            int a = 1;
            int b = 2;

            int max;
            int min;

            pig2.Fish(a, b, out max, out min);
            Console.WriteLine("最大值：{0},最小值:{1}",max,min);
            Console.ReadKey();
        }
    }
}
